const txtLight = (str, target) => {
  const reg = RegExp(target, 'ig')
  // match是关键字匹配的值(尽量保持原样)
  return str.replace(reg, (match) => { return `<span style='color:red'>${match}</span>` })
}
export {
  txtLight
}
